package com.lagou.edu.controller;

import com.lagou.edu.service.CodeService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author: jie.zhao
 * @create: 2021/08/01 17:07
 */
@RestController
@RequestMapping("/api/code")
public class ConfigController {

    @Value("${config.test}")
    private String configtest;


    @GetMapping("/view")
    public String sendCode(){
        return configtest;
    }
}

